from django.contrib import admin
from hosting.hosts.models import Host, HostAlias

class HostAdmin(admin.ModelAdmin):
    fieldsets = (
        (None,{'fields': ('user','name','email')}),
        ('Status', {'fields': ('status',)}))
    list_display = ('user','name', 'email','status')
    ordered = ('-name')
admin.site.register(Host, HostAdmin)

class HostAliasAdmin(admin.ModelAdmin):
    fieldsets = ((None,{'fields':('host','name')}),)
    list_display = ('host','name')
    ordered = ('-host')
admin.site.register(HostAlias, HostAliasAdmin)

